﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;

namespace Akronus.TaskScheduler
{
    /// <summary>
    /// The interface for task timer.
    /// </summary>
    public interface ITaskTimer
    {
        /// <summary>
        /// Occurs when the interval elapses.
        /// </summary>
        event ElapsedEventHandler Elapsed;

        /// <summary>
        /// Gets or sets the interval.
        /// </summary>
        /// <value>The interval.</value>
        double Interval { get; set; }

        /// <summary>
        /// Starts the timer.
        /// </summary>
        void Start();

        /// <summary>
        /// Stops the timer.
        /// </summary>
        void Stop();
    }
}
